import type { CategoryOneItem } from '@/types/category'
import { http } from '@/utils/http'

/**获取分类页数据一级分类+二级分类 */
export const getCategoryDataAPI = () =>
  http.get<CategoryOneItem[]>('/category/top')
